<template>
  <div>
    <slot>TEST</slot>
    <br><br>
    <slot name="yh" :child-list="childList" age="27"></slot>
    <br><br>
    $attrs-{{$attrs}}
    <br><br>
    inject-dynamicSlotName-{{dynamicSlotName}}
  </div>
</template>

<script>

export default {
  name: "TestCom",
  props: {

  },
  inject: ['dynamicSlotName'],
  data(){
    return {
      childList: [1,2,3,4],
      test: ''
    }
  },
  emits: [],
  methods: {

  },
  mounted() {
    console.log(this)
  }
}
</script>

<style scoped>

</style>